import request from '@/utils/request'

// 查询聊天列列表
export function listChatList(query) {
  return request({
    url: '/system/chatList/list',
    method: 'get',
    params: query
  })
}

// 查询聊天列详细
export function getChatList(id) {
  return request({
    url: '/system/chatList/' + id,
    method: 'get'
  })
}

// 新增聊天列
export function addChatList(data) {
  return request({
    url: '/system/chatList',
    method: 'post',
    data: data
  })
}

// 修改聊天列
export function updateChatList(data) {
  return request({
    url: '/system/chatList',
    method: 'put',
    data: data
  })
}

// 删除聊天列
export function delChatList(id) {
  return request({
    url: '/system/chatList/' + id,
    method: 'delete'
  })
}
